<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改潜在客户')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-potentialCustomer-edit" th:object="${potentialCustomer}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">客户名称：</label>
            <div class="col-sm-8">
                <input name="name" th:field="*{name}" class="form-control" type="text">
            </div>
        </div>
        <!-- <div class="form-group">
             <label class="col-sm-3 control-label">联系方式：</label>
             <div class="col-sm-8">
                 <input name="phone" th:field="*{phone}" class="form-control" type="text">
             </div>
         </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注信息：</label>
            <div class="col-sm-8">
                <input name="info" th:field="*{info}" class="form-control" type="text">
            </div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">跟进人：</label>
            <div class="col-sm-8">
                <input name="followUpUser" th:field="*{followUpUser}" class="form-control" type="text">
            </div>
        </div>-->
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">最后跟进时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="lastFollowUpTime" th:value="${#dates.format(potentialCustomer.lastFollowUpTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>-->
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "business/potentialCustomer";
    $("#form-potentialCustomer-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-potentialCustomer-edit').serialize());
        }
    }

    $("input[name='lastFollowUpTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>